#ifndef SERVERNETWORK_H_
#define SERVERNETWORK_H_

#include "global.h"
#include "network.h"

class server_network : public network {
public:
	server_network();
	virtual ~server_network();

	int listen(Uint16 port);
	int accept();
	int close(int socket_num);

	int receive(void *buf, size_t max_size, TCPsocket *socket, size_t *bytes);
	int broadcast(void *buf, size_t size);
};

#endif /* SERVERNETWORK_H_ */
